package com.ynding.cloud.auth.api.admin.domain;

import com.ynding.cloud.auth.api.admin.entity.Menu;
import com.ynding.cloud.auth.api.admin.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author ynding
 */
@Data
@ApiModel(value = "Role", description = "角色")
public class RoleDO implements Serializable {
    private static final long serialVersionUID = -468757998841307266L;

    @ApiModelProperty(name = "id", notes = "ID", dataType = "long")
    private Long id;

    private String name;

    @ApiModelProperty(name = "nameZh", notes = "角色名称", dataType = "string")
    private String nameZh;

    @ApiModelProperty("菜单列表")
    private List<Menu> menus;
    @ApiModelProperty("用户列表")
    private List<User> users;

}
